
/**
 * 判断是否为iOS
 */

import { Platform, Dimensions } from 'react-native'

const X_WIDTH = 375;
const X_HEIGHT = 812;
const { width: D_WIDTH, height: D_HEIGHT } = Dimensions.get('window');

export default {
    isIOS: Platform.OS === 'ios',
    isAndroid: Platform.OS === 'android' ? 30 : 0,
    isIPhoneX: Platform.OS === 'ios' && ((D_HEIGHT === X_HEIGHT && D_WIDTH === X_WIDTH) || (D_HEIGHT === X_WIDTH && D_WIDTH === X_HEIGHT))
}
